package model.dao;

import java.util.List;

import model.bo.Dtable;

public interface IDtableDAO {

	// property constants
	public static final String TABLENAME = "tablename";

	public static final String TABLEURL = "tableurl";

	public static final String TALBETYPE = "talbetype";

	public static final String TALBETYPENAME = "talbetypename";

	public abstract void save(Dtable transientInstance);

	public abstract void delete(Dtable persistentInstance);

	public abstract Dtable findById(java.lang.Integer id);

	public abstract List findByExample(Dtable instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findByTablename(Object tablename);

	public abstract List findByTableurl(Object tableurl);

	public abstract List findByTalbetype(Object talbetype);

	public abstract List findByTalbetypename(Object talbetypename);

	public abstract List findAll();

	public abstract Dtable merge(Dtable detachedInstance);

	public abstract void attachDirty(Dtable instance);

	public abstract void attachClean(Dtable instance);
	//回调
	public int execusql(final String sql);
	//分页
	public List queryForPage(final String hql, final int offset,final int length) ;
	//查询所有记录数
	public int getAllRowCount(String hql);

}